package edu.sctu.practice.class02.Wangpeng.Test2;

/**
 * Created by wp on 2015/11/9.
 */
public class Vehicle {
    int speed;
    int size;

    void move(){};
    void setSpeed(int speed){
        this.speed=speed;
    }
    void speedUp(){
        speed=speed+1;
        this.speed=speed;
    }
    void speedDown(){
        speed=speed-1;
        this.speed=speed;
    }
}
